import os
import json
os.chdir(r"d:/homework/chapter10")
with open('d:/homework/chapter10/profile.json','r') as f:
    a = json.load(f)
    a['血型'] = 'A'
    a['gender'] = 'female'
    f.seek(0)
    json.dump(a,f)
    f.close()